class Fruit {
    public void eat() {}
}

// 苹果类
class Apple extends Fruit {
    public void eat() {
        System.out.println("eat Apple");
    }
}

// 香蕉类
class Banana extends Fruit {
    public void eat() {
        System.out.println("eat Banana");
    }
}